package com.fgba.express.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fgba.express.core.dto.BaseDto;
import com.fgba.express.core.entity.BaseEntity;
import com.fgba.express.core.search.BaseSearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICrudDao<T extends BaseEntity, D extends BaseDto, Q extends BaseSearch> extends BaseMapper<T> {
    IPage<D> selectByPage(IPage<D> page, @Param("search") Q search);
}
